package com.test.web.excel.data.dl;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.test.web.excel.converter.DlDateConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author heyanjing
 * date:2020-05-08 2020/5/8:16:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ContentRowHeight(20)
@HeadRowHeight(40)
@ColumnWidth(26)
public class WriteDlData {


    @ExcelProperty(value = {"数据时间(格式:2019-05-01 13:10:00)"}, converter = DlDateConverter.class)
    private Date   date;
    @ExcelProperty(value = {"scada风速（m/s）"})
    private Double speed;
    @ExcelProperty(value = {"scada功率（kW）"})
    private Double power;
    @ExcelProperty(value = {"是否故障（故障=1，不故障=0）"})
    private String fault    = "";
    @ExcelProperty(value = {"是否限电（限电=1，不限电=0）"})
    private String restrict = "";

}
